﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicExplorer.Model
{
    public enum EntityType
    {
        Artist,
        Genre,
        Label,
        WebSite,
        Youtube,
        Soundcloud
    }

    public static class EntityTypeExtension
    {
        public static bool SupportAllInOne(this EntityType type)
        {
            switch(type)
            {
                case EntityType.Genre:
                case EntityType.WebSite:
                    return true;
                case EntityType.Artist:
                case EntityType.Label:
                case EntityType.Youtube:
                case EntityType.Soundcloud:
                    return false;
                default:
                    throw new Exception("All In One not defined for this type");
            }
        }
    }
}
